<?php
class FrbCmsClientController extends DooController
{
   
   /**
    * 
    * Retourne un array avec clef et contenu 
    * @param unknown_type $page
    */
   public function getContent($page) {
     Doo::loadModelAt('FrbcmsPage', 'frbCms');
     $model_page = new FrbcmsPage();
     $model_page->pge_name = $page;
     $model_page = $this->db()->find($model_page, array('limit'=>1));
     
     Doo::loadModelAt('FrbcmsContent', 'frbCms');
     $content = new FrbcmsContent();
     $content = $this->db()->find($content);
     $page_content='';
     foreach ($content as $c) {
       $page_content[$c->cnt_key] = $c->cnt_content;
     }
     
     return $page_content;
   }
   
 }